package cn.edu.fudan.type;

public class Params {
	protected long window_length;
	protected int N_segment;
	protected double nThreshold;
	protected double cvError;
		
	public Params(long window_length, int n_segment, double nThreshold, double cvError) {
		super();
		this.window_length = window_length;
		N_segment = n_segment;
		this.nThreshold = nThreshold;
		this.cvError = cvError;
	}
	
	public Params(long window_length, int n_segment, double nThreshold) {
		super();
		this.window_length = window_length;
		N_segment = n_segment;
		this.nThreshold = nThreshold;
		this.cvError = Double.NaN;
	}


	public double getnThreshold() {
		return nThreshold;
	}


	public void setnThreshold(double nThreshold) {
		this.nThreshold = nThreshold;
	}


	public double getCvError() {
		return cvError;
	}


	public void setCvError(double cvError) {
		this.cvError = cvError;
	}


	public long getWindow_length() {
		return window_length;
	}

	public void setWindow_length(long window_length) {
		this.window_length = window_length;
	}

	public int getN_segment() {
		return N_segment;
	}

	public void setN_segment(int n_segment) {
		N_segment = n_segment;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + N_segment;
		result = prime * result + (int) (window_length ^ (window_length >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Params other = (Params) obj;
		if (N_segment != other.N_segment)
			return false;
		if (window_length != other.window_length)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Params [window_length=" + window_length + ", N_segment=" + N_segment + ", nThreshold=" + nThreshold
				+ ", cvError=" + cvError + "]";
	}
	

}
